# Author: Anthony Giorgio <agiorgio@us.ibm.com>
# ebuild for Microsoft truetype fonts for use under Wine
# 

DESCRIPTION="Ebuild for Microsoft truetype fonts for use under Wine using the NUL Package."
HOMEPAGE="http://w3.opensource.ibm.com"
SRC_URI="ftp://c4eb.linux.ibm.com/pub/c4eb/3.00/RPMS/grabfonts-2.3-7rh9.noarch.rpm"

SLOT="0"
LICENSE="IBM Internal"
KEYWORDS="x86"

RDEPEND="app-emulation/wine
	app-shells/bash
    net-misc/wget
	app-arch/rpm"

src_unpack() {
	rpm2cpio ${DISTDIR}/${A} | cpio -i --make-directories
# Patch the permissions file to use standard <username>:users permission
# versus the RedHat like <username>:<username>.
        cd ${WORKDIR}/opt/grab-fonts
	epatch ${FILESDIR}/permissions.diff
}

src_install() {
	cd ${WORKDIR}
	cp -R opt/ ${D}/
}


